package com.heima.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.wemedia.pojos.WmNewsMaterial;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 张一恒
 * @version 1.0
 * @description:
 * @date 2023/1/12 14:15
 */
public interface WmNewsMaterialMapper extends BaseMapper<WmNewsMaterial> {

    /**
     * @param wmMaterialId 图片素材id
     * @param wmNewsId 文章id
     * @param type 素材资源分类 0是内容素材 1是封面素材
     * @return void
     * @description 新增素材文章内容数据
     * @author 31115
     * @date 2023/1/12 14:59
     */
    void saveBatch(@Param("wmMaterialId") List<Integer> wmMaterialId, @Param("wmNewsId") Integer wmNewsId, @Param("type") Integer type);
}
